The MATLAB code named 'FCfindc' is used to find inverse optical lever sensitivity (InvOLS) by using force curves carried out on the hard substrate.
To import ASCII data of the force curves carried out on the droplet, we used the MATLAB code named 'FCimport'. The imported data is saved as a
structure called 'a' with 'app' (approach) and 'ret' (retract) cell arrays.
The MATLAB code named as 'FCForceDist' is used to convert deflection (nA) into force (nN) and piezo displacement (um) into separation distance (um).
For Figures 4 and 5, we converted only the deflection (nA) into force (nN) and piezo displacement was remained as it was.
For Figure 6 and 9(A) we converted both deflection (nA) into force (nN) and piezo displacement (um) into separation distance (um).
To convert displacement to distance we subtracted both cantilever deflection and droplet deformation from the displacement.
At last, Force (nN) vs Displacement (um) or Force (nN) vs Distance (um) was plotted. This whole process is given step by step as follows.

Step 1
Import ASCII data files for both droplet and substrate force curves (exported by the NOVA AFM software using the options described in the FCimport.m MATLAB source file).

Step 2
Find inverse optical lever sensitivity (c) using the force curves carried out on the substrates.
MATLAB command - [c, c_all] = FCfindc()

Step 3
Import raw data (Defelction-Displacement) of force curves carried out on the droplet.
MATLAB command - a=FCimport()

Step 4
Convert deflection data in to force.
MATLAB command - dropApp=FCForceDist(a.app{1,1},k,c); 
		 dropRet=FCForceDist(a.ret{1,1},k,c);

Step 5
Plot approach data and retract data
Matlab command - plot(dropApp(:,1),dropApp(:,2))
		 hold on
		 plot(dropRet(:,1),dropRet(:,2))

(Deflection-Displacement and Force-Displacement data of the droplet and substrate are given in Excel file)
